package com.shanzmoo.db.module.member.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.shanzmoo.db.module.member.domain.query.MemberMerchantIdPageQuery;
import com.shanzmoo.db.module.member.domain.query.MemberQuery;
import com.shanzmoo.db.module.member.domain.vo.MemberInfoVO;
import com.shanzmoo.db.module.member.domain.vo.MemberOpenVO;
import com.shanzmoo.db.module.member.entity.MemberInfoEntity;
import com.shanzmoo.db.module.member.mapper.MemberInfoMapper;
import com.shanzmoo.db.module.member.service.IMemberInfoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 平台会员表 服务实现类
 * </p>
 *
 * @author fs
 * @since 2021-03-28
 */
@Service
public class MemberInfoServiceImpl extends ServiceImpl<MemberInfoMapper, MemberInfoEntity> implements IMemberInfoService {

    @Override
    public Page<MemberInfoVO> queryByPage(MemberQuery query) {
        return baseMapper.queryByPage(query.page(),query);
    }

    @Override
    public Page<MemberOpenVO> queryMemberMerchantByRequest(MemberMerchantIdPageQuery request) {
        return baseMapper.queryMemberMerchantByRequest(request.page(),request);
    }
}
